package cn.fufeiii.bt.nomiddleware.openfeign.api;

import cn.fufeiii.bt.nomiddleware.openfeign.dto.AddRequest;
import cn.fufeiii.bt.nomiddleware.openfeign.dto.GetListRequest;
import cn.fufeiii.bt.nomiddleware.openfeign.dto.GetListResponse;
import cn.fufeiii.bt.nomiddleware.openfeign.dto.GetResponse;

import java.util.List;

/**
 * 此API提供给 调用方->feign-client 被调用方->rest-controller
 *
 * @author FuFei
 */
public interface StudentApi {
    String PATH_ADD = "/add";
    String PATH_GET = "/get/{id}";
    String PATH_GET_LIST = "/getList";

    void add(AddRequest addRequest);

    GetResponse get(Long id);

    List<GetListResponse> getList(GetListRequest request);

}
